<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>{% block title %}{{ application_name }}{% endblock %}</title>
    <link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
    {% block head %}{% endblock %}
  </head>
  <body {% block bodyattributes %}{% endblock %}>
      <div id="header">
      {% block header %}
        <div class="login">
          {% if user %}
            <span class="item nickname">{{ user.nickname }}</span> |
            <span class="item myorzing"><a href="/myorzing">my orzing</a></span> |
            <span class="item post"><a href="/post">Post</a></span> |
            <span class="item"><a href="{{ logout_url|escape }}">Sign out</a></span>
          {% else %}
          	<span class="item post"><a href="/post">Post</a></span> |
            <span class="item"><a href="{{ login_url|escape }}">Sign in</a></span>
          {% endif %}
        </div>
        {% endblock %}
      </div>    
    <div id="body">
    {% block body %}{% endblock %}
    </div>
    <div id="footer">
    {% block footer %}{% endblock %}
    </div>
  </body>
</html>
